<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<script>

    function reload() {
        $("#sale_form").form("clear");
    }


</script>
<head>
    <meta charset="UTF-8">
    <title>收银界面</title>
    <link rel="stylesheet" type="text/css" href="/static/js/plugins/jquery-easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/plugins/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/plugins/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/js/static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="index.jsp"></script>
    <script type="text/javascript" src="/static/js/system/sale.js"></script>
</head>
<body>
<div id="cc" class="easyui-layout" id="layout" fit="true" style="background: greenyellow">
    <div data-options="region:'west'" style="width:450px ;background: greenyellow">

        <form id="sale_form" method="post" action="#">
            <br>;
            &nbsp; &nbsp;
            服务人员:
            &nbsp;&nbsp;&nbsp;&nbsp;<input id="saleName" name="salename" style="width:100px">
            &nbsp; &nbsp;
            流水单号:
            &nbsp;&nbsp;&nbsp;&nbsp;<input id="saleOrderNumber" name="saleordernumber" style="width:100px"><br><br>
            &nbsp; &nbsp;
            业务时间:
            &nbsp;&nbsp;&nbsp;

            <input id="dataTime"  style="width:100px">
            &nbsp; &nbsp;
            会员卡号:
            &nbsp; &nbsp;&nbsp;<input id="memberNumber" name="membernumber" style="width:100px"><br><<br>
            &nbsp; &nbsp;
            会员折扣:
            &nbsp;&nbsp;&nbsp;&nbsp;<input id="memberdiscount" name="sn" tag="sn" style="width:100px">
            &nbsp; &nbsp;
            会员余额:
            &nbsp;&nbsp;&nbsp;&nbsp;<input id="memberbalance" name="balance" style="width:100px"><br><br>
            &nbsp; &nbsp;
            金额小计:
            &nbsp; &nbsp;&nbsp;<input id="totalAmount" name="totalamount" tag="SaleAmount" style="width:100px"><br><br>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<a id="btn_sale" style="width: 100px" class="easyui-linkbutton"
                                              data-options="iconCls:'icon-pencil'" onclick="regiseter()">挂单</a>
            <div id="dd">
                <table id="dg">
                    <div id="bb">
                        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick = "select()">取出选中订单</a>
                        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true"onclick ="cancel()">取消</a>
                    </div>
                </table>
            </div>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
            <a id="btn_close" style="width: 100px;" class="easyui-linkbutton" data-options="iconCls:'icon-sum'">结算</a><br><br>

            <br><br>
            <div class="ui_content">
                &nbsp;
                <input type="button" value="添加明细" style="width: 100px" class="ui_input_btn01 appendRow"/><br><br><br>
                <table id="myTable" class="myOrder" cellspacing="0" cellpadding="0" border="0" style="width: auto">
                    <thead>
                    <tr>
                        <th width="10"></th>
                        <th width="120">货品</th>
                        <th width="120">品牌</th>
                        <th width="80">价格</th>
                        <th width="80">数量</th>
                        <th width="80">金额</th>
                        <th width="150">备注</th>
                        <th width="60"></th>
                    </tr>
                    </thead>
                    <tbody id="edit_table_body">
                    <tr>
                        <td></td>
                        <td>
                            <input id="product_name" tag="product" name="name" style="width:50px">
                            <input type="hidden" name="member.id"  tag="pid" id="memberId"/>
                        </td>
                        <td>
                            <input id="productClassify" tag="srotName" name="productclassify" style="width:50px">
                        </td>
                        <td>
                            <input id="salePrice" tag="saleprice" name="saleprice" style="width:50px">
                        </td>

                        <td>
                            <input id="saleCount" tag="saleCount" name="salecount" style="width:50px">
                        </td>

                        <td>
                            <input id="AmountPrice" tag="AmountPrice" name="amountprice" style="width:50px">
                        </td>
                        <td>
                            <a href="javascript:;" style="width: 50px" class="removeItem">删除明细</a>
                        </td>
                    </tr>
                    </tbody>
                </table>

                <td>&nbsp;</td>
                <br>
                <td class="ui_text_lt">
                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="sale_sbumit" type="button" value="确定保存" class="ui_input_btn01"
                           onclick="submitSale()"/>
                    <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'"
                       onclick="reload()">刷新</a>
                </td>
            </div>
        </form>
    </div>
    <div data-options="region:'center'">
        <div class="easyui-tabs" fit="true">
            <div title="商品列表" id="product">
                <table id="order_product"></table>
            </div>
            <div title="会员列表" id="memberinfo">
                <table id="emp_datagrid"></table>
            </div>
        </div>
    </div>
</div>
<div id="tb_member">
    <input class="easyui-textbox" id="keywords" name="keyword" prompt="请输入姓名/电话/卡号"/>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()"></a>
</div>

<div id="tb_product">
    <input class="easyui-textbox" id="keyword" name="keywords" prompt="请输入商品编号或名称"/>
    <a href="#" class="easyui-linkbutton" onclick="queryProductForm()" data-options="iconCls:'icon-search',plain:true">查询</a>
</div>
</body>
</html>